import { Injectable, NestMiddleware } from '@nestjs/common';
import {Request, Response, NextFunction} from 'express';

// @Injectable()
// export class LoggerMiddleware implements NestMiddleware{
//     use(req: Request, res: Response, next: (error?: any) => void) {
//         console.log('Request ...');
//         next();
//     }
// }

export function logger(req:Request, res:Response, next: NextFunction){
    console.log("Request ...");
    next();
}

